<html>
<head>
<meta name="layout" content="main" />
<title>Index Page</title>
<style type="text/css">
label {
	width: 80px;
	padding-left: 90px;
}
</style>
</head>
<body>
	<div style="height: 535px; background: #6699CC;">
		<g:if test="${session.user}">
			<g:if test="${flash.message}">
				<div class="message" style="">
					${flash.message}
				</div>
			</g:if>

		</g:if>
		<g:else>

			<g:form controller="user" action="login">

				<div style="width: 400px; height: auto; margin-left: 400px;">
					<label style="margin-top: 10px;">UserName:</label>
					<input type="text" name="username" /> 
						<label style="margin-top: 10px;">Password:</label>
						<input type="password" name="password" /> 
						<input style="margin-left: 250px; margin-top: 10px;" type="submit" value="Login">
				</div>
			</g:form>

		</g:else>
	</div>
</body>
</html>